package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class ProductType extends BaseDomain {


    private String typeUrl;

    private String typeName;


    public String getJson() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("typeUrl", typeUrl);
        map.put("typeName", typeName);
        return JSONUtil.toJSONString(map);
    }


}